class Assignment < ActiveRecord::Base

  hobo_model
  
  belongs_to :user
  belongs_to :task
  
  validates_presence_of :user
  validates_presence_of :task

  # --- Hobo Permissions --- #

  def creatable_by?(creator)
    true
  end

  def updatable_by?(updater, new)
    true
  end

  def deletable_by?(deleter)
    false
  end

  def viewable_by?(viewer, field)
    true
  end

end
